<!DOCTYPE html>




<html class="theme-next mist" lang="zh-Hans">
<head>
  <meta charset="UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1"/>
<meta name="theme-color" content="#222">



  
  
    
    
  <script src="/lib/pace/pace.min.js?v=1.0.2"></script>
  <link href="/lib/pace/pace-theme-minimal.min.css?v=1.0.2" rel="stylesheet">







<meta http-equiv="Cache-Control" content="no-transform" />
<meta http-equiv="Cache-Control" content="no-siteapp" />















  
  
  <link href="/lib/fancybox/source/jquery.fancybox.css?v=2.1.5" rel="stylesheet" type="text/css" />







<link href="/lib/font-awesome/css/font-awesome.min.css?v=4.6.2" rel="stylesheet" type="text/css" />

<link href="/css/main.css?v=5.1.2" rel="stylesheet" type="text/css" />


  <meta name="keywords" content="左耳朵耗子,书籍," />








  <link rel="shortcut icon" type="image/x-icon" href="/images/favicon-16x16-next.png?v=5.1.2" />






<meta name="description" content="程序员练级攻略（2018） 《Teach Yourself Programming in Ten Years》 (中文版)十年学会编程 “ The Key To Accelerating Your Coding Skills”：快速提高自己的编程能力 《程序员的荒谬之言还是至理名言？》学习建议 一定要坚持，要保持长时间学习，甚至终生学习的态度。 一定要动手，不管例子多么简单，建议至少自己动手敲一遍">
<meta name="keywords" content="左耳朵耗子,书籍">
<meta property="og:type" content="article">
<meta property="og:title" content="左耳朵大叔介绍的书籍、文章、网站">
<meta property="og:url" content="http://xchcloud.cn/左耳朵大叔介绍的书籍、文章、网站/index.html">
<meta property="og:site_name" content="超哥记录日记">
<meta property="og:description" content="程序员练级攻略（2018） 《Teach Yourself Programming in Ten Years》 (中文版)十年学会编程 “ The Key To Accelerating Your Coding Skills”：快速提高自己的编程能力 《程序员的荒谬之言还是至理名言？》学习建议 一定要坚持，要保持长时间学习，甚至终生学习的态度。 一定要动手，不管例子多么简单，建议至少自己动手敲一遍">
<meta property="og:locale" content="zh-Hans">
<meta property="og:updated_time" content="2018-08-26T08:40:38.151Z">
<meta name="twitter:card" content="summary">
<meta name="twitter:title" content="左耳朵大叔介绍的书籍、文章、网站">
<meta name="twitter:description" content="程序员练级攻略（2018） 《Teach Yourself Programming in Ten Years》 (中文版)十年学会编程 “ The Key To Accelerating Your Coding Skills”：快速提高自己的编程能力 《程序员的荒谬之言还是至理名言？》学习建议 一定要坚持，要保持长时间学习，甚至终生学习的态度。 一定要动手，不管例子多么简单，建议至少自己动手敲一遍">



<script type="text/javascript" id="hexo.configurations">
  var NexT = window.NexT || {};
  var CONFIG = {
    root: '/',
    scheme: 'Mist',
    sidebar: {"position":"left","display":"always","offset":12,"offset_float":12,"b2t":false,"scrollpercent":false,"onmobile":false},
    fancybox: true,
    tabs: true,
    motion: false,
    duoshuo: {
      userId: '0',
      author: '博主'
    },
    algolia: {
      applicationID: '',
      apiKey: '',
      indexName: '',
      hits: {"per_page":10},
      labels: {"input_placeholder":"Search for Posts","hits_empty":"We didn't find any results for the search: ${query}","hits_stats":"${hits} results found in ${time} ms"}
    }
  };
</script>



  <link rel="canonical" href="http://xchcloud.cn/左耳朵大叔介绍的书籍、文章、网站/"/>





  <title>左耳朵大叔介绍的书籍、文章、网站 | 超哥记录日记</title>
  





  <script type="text/javascript">
    var _hmt = _hmt || [];
    (function() {
      var hm = document.createElement("script");
      hm.src = "https://hm.baidu.com/hm.js?b8d23512908ca3b4b175b2620a75740f";
      var s = document.getElementsByTagName("script")[0];
      s.parentNode.insertBefore(hm, s);
    })();
  </script>










</head>

<body itemscope itemtype="http://schema.org/WebPage" lang="zh-Hans">

  
  
    
  

  <div class="container sidebar-position-left page-post-detail ">
    <div class="headband"></div>

    <header id="header" class="header" itemscope itemtype="http://schema.org/WPHeader">
      <div class="header-inner"><div class="site-brand-wrapper">
  <div class="site-meta ">
    

    <div class="custom-logo-site-title">
      <a href="/"  class="brand" rel="start">
        <span class="logo-line-before"><i></i></span>
        <span class="site-title">超哥记录日记</span>
        <span class="logo-line-after"><i></i></span>
      </a>
    </div>
      
        <h1 class="site-subtitle" itemprop="description">生命有息、学无止境、折腾不止</h1>
      
  </div>

  <div class="site-nav-toggle">
    <button>
      <span class="btn-bar"></span>
      <span class="btn-bar"></span>
      <span class="btn-bar"></span>
    </button>
  </div>
</div>

<nav class="site-nav">
  

  
    <ul id="menu" class="menu">
      
        
        <li class="menu-item menu-item-home">
          <a href="/" rel="section">
            
              <i class="menu-item-icon fa fa-fw fa-home"></i> <br />
            
            首页
          </a>
        </li>
      
        
        <li class="menu-item menu-item-about">
          <a href="/about/" rel="section">
            
              <i class="menu-item-icon fa fa-fw fa-user"></i> <br />
            
            关于
          </a>
        </li>
      
        
        <li class="menu-item menu-item-archives">
          <a href="/archives/" rel="section">
            
              <i class="menu-item-icon fa fa-fw fa-archive"></i> <br />
            
            归档
          </a>
        </li>
      
        
        <li class="menu-item menu-item-tags">
          <a href="/tags/" rel="section">
            
              <i class="menu-item-icon fa fa-fw fa-tags"></i> <br />
            
            标签
          </a>
        </li>
      
        
        <li class="menu-item menu-item-categories">
          <a href="/categories" rel="section">
            
              <i class="menu-item-icon fa fa-fw fa-th"></i> <br />
            
            分类
          </a>
        </li>
      

      
        <li class="menu-item menu-item-search">
          
            <a href="javascript:;" class="popup-trigger">
          
            
              <i class="menu-item-icon fa fa-search fa-fw"></i> <br />
            
            搜索
          </a>
        </li>
      
    </ul>
  

  
    <div class="site-search">
      
  <div class="popup search-popup local-search-popup">
  <div class="local-search-header clearfix">
    <span class="search-icon">
      <i class="fa fa-search"></i>
    </span>
    <span class="popup-btn-close">
      <i class="fa fa-times-circle"></i>
    </span>
    <div class="local-search-input-wrapper">
      <input autocomplete="off"
             placeholder="搜索..." spellcheck="false"
             type="text" id="local-search-input">
    </div>
  </div>
  <div id="local-search-result"></div>
</div>



    </div>
  
</nav>



 </div>
    </header>

    <main id="main" class="main">
      <div class="main-inner">
        <div class="content-wrap">
          <div id="content" class="content">
            

  <div id="posts" class="posts-expand">
    

  

  
  
  

  <article class="post post-type-normal" itemscope itemtype="http://schema.org/Article">
  
  
  
  <div class="post-block">
    <link itemprop="mainEntityOfPage" href="http://xchcloud.cn/左耳朵大叔介绍的书籍、文章、网站/">

    <span hidden itemprop="author" itemscope itemtype="http://schema.org/Person">
      <meta itemprop="name" content="John Doe">
      <meta itemprop="description" content="">
      <meta itemprop="image" content="https://tuchuang-xchcloud-1253428588.cos.ap-chengdu.myqcloud.com/blog/header.jpg">
    </span>

    <span hidden itemprop="publisher" itemscope itemtype="http://schema.org/Organization">
      <meta itemprop="name" content="超哥记录日记">
    </span>

    
      <header class="post-header">

        
        
          <h2 class="post-title" itemprop="name headline">左耳朵大叔介绍的书籍、文章、网站</h2>
        

        <div class="post-meta">
          <span class="post-time">
            
              <span class="post-meta-item-icon">
                <i class="fa fa-calendar-o"></i>
              </span>
              
                <span class="post-meta-item-text">发表于</span>
              
              <time title="创建于" itemprop="dateCreated datePublished" datetime="2018-08-16T21:28:15+08:00">
                2018-08-16
              </time>
            

            

            
          </span>

          
            <span class="post-category" >
            
              <span class="post-meta-divider">|</span>
            
              <span class="post-meta-item-icon">
                <i class="fa fa-folder-o"></i>
              </span>
              
                <span class="post-meta-item-text">分类于</span>
              
              
                <span itemprop="about" itemscope itemtype="http://schema.org/Thing">
                  <a href="/categories/书籍/" itemprop="url" rel="index">
                    <span itemprop="name">书籍</span>
                  </a>
                </span>

                
                
              
            </span>
          

 


          
            
          

          
          

          
            <span class="post-meta-divider">|</span>
            <span class="page-pv"><i class="fa fa-file-o">访问数</i>
            <span class="busuanzi-value" id="busuanzi_value_page_pv" ></span>°C
            </span>
          

          
            <div class="post-wordcount">
              
                
                <span class="post-meta-item-icon">
                  <i class="fa fa-file-word-o"></i>
                </span>
                
                  <span class="post-meta-item-text">字数统计</span>
                
                <span title="字数统计">
                  1,545
                </span>
              

              
                <span class="post-meta-divider">|</span>
              

              
                <span class="post-meta-item-icon">
                  <i class="fa fa-clock-o"></i>
                </span>
                
                  <span class="post-meta-item-text">阅读时长</span>
                
                <span title="阅读时长">
                  6
                </span>
              
            </div>
          

          

        </div>
      </header>
    

    
    
    
    <div class="post-body" itemprop="articleBody">

      
      

      
        <h3 id="程序员练级攻略（2018）"><a href="#程序员练级攻略（2018）" class="headerlink" title="程序员练级攻略（2018）"></a>程序员练级攻略（2018）</h3><ul>
<li><a href="http://norvig.com/21-days.html" target="_blank" rel="noopener">《Teach Yourself Programming in Ten Years》</a></li>
<li><a href="https://liuyandong.com/2017/10/25/122/" target="_blank" rel="noopener">(中文版)十年学会编程</a></li>
<li><a href="http://blog.thefirehoseproject.com/posts/learn-to-code-and-be-self-reliant/" target="_blank" rel="noopener">“ The Key To Accelerating Your Coding Skills”</a>：快速提高自己的编程能力</li>
<li><a href="https://coolshell.cn/articles/4235.html" target="_blank" rel="noopener">《程序员的荒谬之言还是至理名言？》</a><h4 id="学习建议"><a href="#学习建议" class="headerlink" title="学习建议"></a>学习建议</h4></li>
<li>一定要坚持，要保持长时间学习，甚至终生学习的态度。</li>
<li>一定要动手，不管例子多么简单，建议至少自己动手敲一遍看看是否理解了里头的细枝末节。</li>
<li>一定要学会思考，思考为什么要这样，而不是那样。还要举一反三地思考。</li>
<li>不要乱买书，不要乱追新技术新名词，基础的东西经过很长时间积累，会在未来至少10年通用。</li>
<li>回顾一下历史，看看历史时间线上技术的发展，你才能明白明天会是什么样的。<h4 id="程序员的修养"><a href="#程序员的修养" class="headerlink" title="程序员的修养"></a>程序员的修养</h4></li>
<li><a href="https://www.quora.com/What-are-some-of-the-most-basic-things-every-programmer-should-know" target="_blank" rel="noopener">What are some of the most basic things every programmer should know?</a></li>
<li><a href="https://97-things-every-x-should-know.gitbooks.io/97-things-every-programmer-should-know/content/en/index.html" target="_blank" rel="noopener">《97 Things Every Programmer Should Know》</a><h4 id="在线编程入门的网站"><a href="#在线编程入门的网站" class="headerlink" title="在线编程入门的网站"></a>在线编程入门的网站</h4></li>
<li><a href="https://www.codecademy.com/learn" target="_blank" rel="noopener">Codecademy: Learn Python</a></li>
<li><a href="https://www.peoplecanprogram.com/" target="_blank" rel="noopener">People Can Program</a></li>
<li><a href="http://www.codeabbey.com/index/task_list" target="_blank" rel="noopener">CodeAbbey 编程练习</a></li>
<li><a href="https://developer.mozilla.org/zh-CN/docs/Learn/Getting_started_with_the_web" target="_blank" rel="noopener">Mozilla Developer Network 的 Web开发入门</a><h4 id="入门学习JavaScript"><a href="#入门学习JavaScript" class="headerlink" title="入门学习JavaScript"></a>入门学习JavaScript</h4></li>
<li><a href="https://developer.mozilla.org/zh-CN/docs/Web/JavaScript" target="_blank" rel="noopener">MDN JavaScript教程</a></li>
<li><a href="http://www.w3school.com.cn/js/" target="_blank" rel="noopener">W3School JavaScript教程 </a></li>
<li><a href="https://www.liaoxuefeng.com/wiki/001434446689867b27157e896e74d51a89c25cc8b43bdb3000" target="_blank" rel="noopener">JavaScript全栈教程（廖雪峰） </a><h4 id="前后端"><a href="#前后端" class="headerlink" title="前后端"></a>前后端</h4></li>
<li><a href="https://developer.mozilla.org/zh-CN/docs/Web/CSS" target="_blank" rel="noopener">CSS文档 </a></li>
<li><a href="https://developer.mozilla.org/zh-CN/docs/Web/HTML" target="_blank" rel="noopener">HTML文档</a></li>
<li><a href="https://www.w3schools.com/js/js_htmldom.asp" target="_blank" rel="noopener">W3Schools的JavaScript HTML DOM的教程</a></li>
<li><a href="http://www.w3school.com.cn/php/index.asp" target="_blank" rel="noopener">W3School的PHP教程</a></li>
<li><a href="http://php.net/manual/zh/" target="_blank" rel="noopener">PHP的官网文档</a><h4 id="写代码的修养"><a href="#写代码的修养" class="headerlink" title="写代码的修养"></a>写代码的修养</h4></li>
<li>《重构：改善既有代码的设计》</li>
<li>《修改代码的艺术》</li>
<li>《代码整洁之道》</li>
<li><p>《程序员的职业素养》</p>
<h5 id="不错的Code-Review的文章"><a href="#不错的Code-Review的文章" class="headerlink" title="不错的Code Review的文章"></a>不错的Code Review的文章</h5></li>
<li><p><a href="https://medium.com/@palantir/code-review-best-practices-19e02780015f" target="_blank" rel="noopener">Code Review Best Practices</a>.</p>
</li>
<li><a href="https://dzone.com/articles/how-google-does-code-review" target="_blank" rel="noopener">How Google Does Code Review</a></li>
<li><a href="https://thenewstack.io/linkedin-code-review/" target="_blank" rel="noopener">LinkedIn’s Tips for Highly Effective Code Review</a><h5 id="Unit-Test的不错文章"><a href="#Unit-Test的不错文章" class="headerlink" title="Unit Test的不错文章"></a>Unit Test的不错文章</h5></li>
<li><a href="https://stackify.com/unit-testing-basics-best-practices/" target="_blank" rel="noopener">You Still Don’t Know How to Do Unit Testing</a></li>
<li><a href="https://dzone.com/articles/unit-testing-best-practices" target="_blank" rel="noopener">Unit Testing Best Practices: JUnit Reference Guide</a></li>
<li><a href="http://www.kyleblaney.com/junit-best-practices/" target="_blank" rel="noopener">JUnit Best Practices</a><h5 id="学习JUnit"><a href="#学习JUnit" class="headerlink" title="学习JUnit"></a>学习JUnit</h5></li>
<li><a href="https://junit.org/junit5/docs/current/user-guide/" target="_blank" rel="noopener">JUnit User Guide(官网)</a></li>
<li><a href="http://sjyuan.cc/junit5/user-guide-cn/" target="_blank" rel="noopener">中文版(官网)</a></li>
</ul>
<h4 id="工具"><a href="#工具" class="headerlink" title="工具"></a>工具</h4><h5 id="编程的IDE"><a href="#编程的IDE" class="headerlink" title="编程的IDE"></a>编程的IDE</h5><ul>
<li><a href="http://www.runoob.com/eclipse/eclipse-tutorial.html" target="_blank" rel="noopener">Eclipse（教程）</a></li>
<li><a href="https://www.gitbook.com/book/dancon/intellij-idea/details" target="_blank" rel="noopener">Intellij IDEA（教程）</a></li>
<li><a href="https://www.gitbook.com/book/jeasonstudio/vscode-cn-doc/details" target="_blank" rel="noopener">Visual Studio Code</a><h5 id="版本管理工具"><a href="#版本管理工具" class="headerlink" title="版本管理工具"></a>版本管理工具</h5></li>
<li><a href="https://git-scm.com/book/zh/v2/" target="_blank" rel="noopener">Pro Git 第二版 </a>：非常系统,首选</li>
<li><a href="https://backlog.com/git-tutorial/cn/" target="_blank" rel="noopener">猴子都能懂的Git入门</a></li>
<li>Git环境安装和准备以及GitHub使用：</li>
<li><ul>
<li><a href="https://github.com/JiapengLi/GitTutorial" target="_blank" rel="noopener">Github and Git 图文教程 </a></li>
</ul>
</li>
<li><ul>
<li><a href="https://www.jianshu.com/p/1b65ed31da97" target="_blank" rel="noopener">Git图文教程及详解</a><h5 id="调试前端程序"><a href="#调试前端程序" class="headerlink" title="调试前端程序"></a>调试前端程序</h5><a href="http://www.igeekbar.com/igeekbar/post/156.htm" target="_blank" rel="noopener"> 超完整的Chrome浏览器客户端调试大全</a><h5 id="数据库设计工具"><a href="#数据库设计工具" class="headerlink" title="数据库设计工具"></a>数据库设计工具</h5><a href="https://dev.mysql.com/doc/refman/5.7/en/" target="_blank" rel="noopener">MySQL WorkBench官方文档</a></li>
</ul>
</li>
</ul>
<h4 id="安全"><a href="#安全" class="headerlink" title="安全"></a>安全</h4><h5 id="Web"><a href="#Web" class="headerlink" title="Web"></a>Web</h5><ul>
<li><a href="https://www.owasp.org/index.php/Main_Page" target="_blank" rel="noopener">OWASP - Open Web Application Security Project</a><h5 id="HTTP"><a href="#HTTP" class="headerlink" title="HTTP"></a>HTTP</h5></li>
<li><a href="https://www.keycdn.com/blog/http-security-headers/" target="_blank" rel="noopener">《Hardening Your HTTP Security Headers》</a><h5 id="安全编程"><a href="#安全编程" class="headerlink" title="安全编程"></a>安全编程</h5></li>
<li><a href="https://security.berkeley.edu/secure-coding-practice-guidelines" target="_blank" rel="noopener">伯克立大学的Secure Coding Practice Guidelines</a></li>
<li><a href="https://wiki.sei.cmu.edu/confluence/display/seccode/SEI+CERT+Coding+Standards" target="_blank" rel="noopener">卡内基梅隆大学的 SEI CERT Coding Standards</a><h5 id="防御性编程-维基百科"><a href="#防御性编程-维基百科" class="headerlink" title="防御性编程(维基百科)"></a><a href="https://en.wikipedia.org/wiki/Defensive_programming" target="_blank" rel="noopener">防御性编程(维基百科)</a></h5></li>
<li><a href="https://medium.com/web-engineering-vox/the-art-of-defensive-programming-6789a9743ed4" target="_blank" rel="noopener">The Art of Defensive Programming</a></li>
<li><a href="https://medium.com/@cvitullo/overly-defensive-programming-e7a1b3d234c2" target="_blank" rel="noopener">Overly defensive programming</a><h4 id="测试"><a href="#测试" class="headerlink" title="测试"></a>测试</h4></li>
<li><a href="https://book.douban.com/subject/4187479/" target="_blank" rel="noopener">《完美软件：对软件测试的各种幻想》</a></li>
<li><a href="https://book.douban.com/subject/25742200/" target="_blank" rel="noopener">《Google软件测试之道》</a><h4 id="上线Checklist"><a href="#上线Checklist" class="headerlink" title="上线Checklist"></a>上线Checklist</h4></li>
<li><a href="https://github.com/mtdvio/going-to-production/blob/master/serverside-checklist.md" target="_blank" rel="noopener">Server Side checklist</a></li>
<li><a href="https://github.com/mtdvio/going-to-production/blob/master/spa-checklist.md" target="_blank" rel="noopener">Single Page App Checklist</a><h4 id="运维方面的入门文章"><a href="#运维方面的入门文章" class="headerlink" title="运维方面的入门文章"></a>运维方面的入门文章</h4></li>
<li><a href="https://www.datadoghq.com/blog/monitoring-101-collecting-data/" target="_blank" rel="noopener">《Monitoring 101》</a>:告诉你最基本的监控线上运行软件的方法和实践。</li>
</ul>
<h4 id="各种语言的编程规范"><a href="#各种语言的编程规范" class="headerlink" title="各种语言的编程规范"></a>各种语言的编程规范</h4><ul>
<li><a href="http://note.youdao.com/noteshare?id=db702a4a94b411c75f42957611a54233&amp;sub=wcp1534430224807260" target="_blank" rel="noopener">各种语言的编程规范</a></li>
</ul>
<h3 id="编程语言"><a href="#编程语言" class="headerlink" title="编程语言"></a>编程语言</h3><h4 id="Java语言"><a href="#Java语言" class="headerlink" title="Java语言"></a>Java语言</h4><ul>
<li><a href="https://book.douban.com/subject/26880667/" target="_blank" rel="noopener">《Java核心技术：卷1基础知识》</a></li>
<li><a href="https://book.douban.com/subject/26767354/" target="_blank" rel="noopener">《Spring实战》</a></li>
<li><a href="https://book.douban.com/subject/26857423/" target="_blank" rel="noopener">《Spring Boot实战》</a></li>
<li><a href="https://book.douban.com/subject/27047716/" target="_blank" rel="noopener">《Effective Java》</a></li>
<li><a href="https://github.com/google/guava" target="_blank" rel="noopener"> Google Guava 库</a></li>
<li><a href="https://book.douban.com/subject/10484692/" target="_blank" rel="noopener">《Java并发编程实战》</a></li>
<li><a href="https://book.douban.com/subject/26740520/" target="_blank" rel="noopener">《Java性能权威指南》</a></li>
<li><a href="https://book.douban.com/subject/24722612/" target="_blank" rel="noopener">《深入理解Java虚拟机》</a></li>
<li><a href="https://book.douban.com/subject/2130190/" target="_blank" rel="noopener">《Java编程思想》</a></li>
<li><a href="https://book.douban.com/subject/26952826/" target="_blank" rel="noopener">《精通Spring 4.x》</a></li>
<li><a href="https://book.douban.com/subject/1052241/" target="_blank" rel="noopener">《设计模式》</a></li>
<li><a href="https://book.douban.com/subject/2243615/" target="_blank" rel="noopener">《Head First设计模式》</a></li>
</ul>
<h4 id="C-C-语言"><a href="#C-C-语言" class="headerlink" title="C/C++语言"></a>C/C++语言</h4><ul>
<li><a href="https://book.douban.com/subject/1139336/" target="_blank" rel="noopener">《C程序设计语言》C语言之父Dennis M. Ritchie和著名科学家Brian W. Kernighan</a></li>
<li><a href="https://book.douban.com/subject/2280547/" target="_blank" rel="noopener">《C语言程序设计现代方法》</a></li>
<li><a href="https://book.douban.com/subject/2778632/" target="_blank" rel="noopener">《C陷阱与缺陷》</a></li>
<li><a href="https://coolshell.cn/articles/7992.html" target="_blank" rel="noopener">“C++的坑真的多吗？”</a></li>
<li><a href="https://book.douban.com/subject/25708312/" target="_blank" rel="noopener">《C++ Primer中文版》</a></li>
<li><a href="https://book.douban.com/subject/5387403/" target="_blank" rel="noopener">《Effective C++》</a></li>
<li><a href="https://book.douban.com/subject/5908727/" target="_blank" rel="noopener">《More Effective C++》</a></li>
<li><a href="https://book.douban.com/subject/10427315/" target="_blank" rel="noopener">《深度探索C++对象模型》</a></li>
<li><a href="https://coolshell.cn/articles/12165.html" target="_blank" rel="noopener">《C++虚函数表解析》</a></li>
<li><a href="https://coolshell.cn/articles/12176.html" target="_blank" rel="noopener">《C++对象内存布局》</a></li>
<li><a href="http://www.stroustrup.com/bs_faq.html" target="_blank" rel="noopener"> 《C++ FAQ》Bjarne Stroustrup </a></li>
<li><a href="http://www.stroustrup.com/bsfaqcn.html" target="_blank" rel="noopener">《C++ FAQ》(中文版)</a></li>
</ul>
<h4 id="Go语言"><a href="#Go语言" class="headerlink" title="Go语言"></a>Go语言</h4><ul>
<li><a href="https://gobyexample.com/" target="_blank" rel="noopener"> Go by Example</a>：入门</li>
<li><a href="https://go101.org/article/101.html" target="_blank" rel="noopener">Go 101</a></li>
<li><a href="https://book.douban.com/subject/26337545/" target="_blank" rel="noopener">The Go Programming Language</a></li>
<li><a href="https://coolshell.cn/articles/8460.html" target="_blank" rel="noopener"> “GO 语言简介（上）- 语法”</a>：参考</li>
<li><a href="https://coolshell.cn/articles/8489.html" target="_blank" rel="noopener"> “GO 语言简介（下）- 特性”</a>：参考</li>
<li><a href="https://golang.org/doc/effective_go.html" target="_blank" rel="noopener"> Effective Go</a>：必读</li>
<li><a href="https://github.com/golang/go/wiki/Articles" target="_blank" rel="noopener">Go精华文章列表(Github)</a></li>
<li><a href="https://github.com/golang/go/wiki/Blogs" target="_blank" rel="noopener">Go相关博客列表(Github)</a></li>
<li><a href="https://github.com/golang/go/wiki/GoTalks" target="_blank" rel="noopener">Go Talks(Github)</a></li>
<li><a href="https://github.com/avelino/awesome-go" target="_blank" rel="noopener">Go资源列表 Awesome Go(Github)</a></li>
</ul>
<h3 id="理论学科"><a href="#理论学科" class="headerlink" title="理论学科"></a>理论学科</h3><p>算法、数据结构、网络模型、计算机原理等这样的计算机科学专业需要学习的理论知识是必须要学习的</p>
<h4 id="数据结构和算法"><a href="#数据结构和算法" class="headerlink" title="数据结构和算法"></a>数据结构和算法</h4><h5 id="基础知识"><a href="#基础知识" class="headerlink" title="基础知识"></a>基础知识</h5><ul>
<li><a href="https://book.douban.com/subject/10432347/" target="_blank" rel="noopener">《算法》</a></li>
<li><a href="https://book.douban.com/subject/26979890/" target="_blank" rel="noopener">《算法图解》</a></li>
</ul>
<h5 id="理论加持"><a href="#理论加持" class="headerlink" title="理论加持"></a>理论加持</h5><ul>
<li><a href="https://book.douban.com/subject/20432061/" target="_blank" rel="noopener">《算法导论》</a></li>
</ul>
<h5 id="思维改善"><a href="#思维改善" class="headerlink" title="思维改善"></a>思维改善</h5><ul>
<li><a href="https://book.douban.com/subject/3227098/" target="_blank" rel="noopener">《编程珠玑》</a></li>
</ul>
<h5 id="基础算法题"><a href="#基础算法题" class="headerlink" title="基础算法题"></a>基础算法题</h5><p>其中有大量的算法题，解这些题都是有套路的，不是用递归（深度优先DFS，广度优先BFS），就是要用动态规划（Dynamic Programming），或是折半查找（Binary Search），或是回溯（Back tracing），或是分治法（Divide and Conquer），还有大量的对树、数组、链表、字符串和hash表的操作。通过做这些题能让你对这些最基础的算法的思路有非常扎实的了解和训练。对我而言，Dynamic Programming是我的短板，尤其是一些比较复杂的问题，在推导递推公式上总是有思维的缺陷（数学是我的硬伤）。做了这些题后，我能感到我在动态编程的思路上受到了很大的启发。</p>
<h5 id="编程题"><a href="#编程题" class="headerlink" title="编程题"></a>编程题</h5><p>比如：atoi，strstr，add two nums，括号匹配，字符串乘法，通配符匹配，文件路径简化，Text Justification，反转单词等，这些题的Edge Case和Corner Case有很多。这些题需要你想清楚了再干，只要你稍有疏忽，就会有几个case让你痛不欲生，而且一不小心就会让你的代码写得又臭又长，无法阅读。通过做这些题，可以非常好地训练你对各种情况的考虑，以及你对程序代码组织的掌控（其实就是其中的状态变量）。</p>
<ul>
<li><ul>
<li><a href="https://github.com/haoel/leetcode" target="_blank" rel="noopener">Leetcode  Github </a></li>
</ul>
</li>
<li><ul>
<li><a href="https://www.wikiwand.com/en/List_of_algorithms" target="_blank" rel="noopener">List of Algorithms(算法字典)</a></li>
</ul>
</li>
<li><ul>
<li><a href="https://www.cs.usfca.edu/~galles/visualization/Algorithms.html" target="_blank" rel="noopener">Data Structure Visualizations(数据结构动画图)</a></li>
</ul>
</li>
</ul>
<h4 id="其它理论基础知识"><a href="#其它理论基础知识" class="headerlink" title="其它理论基础知识"></a>其它理论基础知识</h4><ul>
<li><a href="https://book.douban.com/subject/1139426/" target="_blank" rel="noopener">《数据结构与算法分析》</a></li>
<li><a href="https://book.douban.com/subject/1929984/" target="_blank" rel="noopener">《数据库系统概念》</a></li>
<li><a href="https://book.douban.com/subject/3852290/" target="_blank" rel="noopener">《现代操作系统》</a></li>
<li><a href="https://book.douban.com/subject/1391207/" target="_blank" rel="noopener">《计算机网络》</a></li>
<li><a href="https://book.douban.com/subject/1148282/" target="_blank" rel="noopener">《计算机程序的构造和解释》</a></li>
<li><a href="https://book.douban.com/subject/3296317/" target="_blank" rel="noopener">《编译原理》</a></li>
</ul>
<h3 id="计算机系统相关知识"><a href="#计算机系统相关知识" class="headerlink" title="计算机系统相关知识"></a>计算机系统相关知识</h3><ul>
<li><a href="https://book.douban.com/subject/5333562/" target="_blank" rel="noopener">《深入理解计算机系统》原名：《Computer Systems A Programmer’s Perspective》</a>:程序员必读<h4 id="入门"><a href="#入门" class="headerlink" title="入门"></a>入门</h4></li>
<li><a href="https://book.douban.com/subject/4141733/" target="_blank" rel="noopener">《Linux C编程一站式学习》</a></li>
<li><a href="https://book.douban.com/subject/25911735/" target="_blank" rel="noopener">《TCP/IP网络编程》</a></li>
<li><a href="https://book.douban.com/subject/24737674/" target="_blank" rel="noopener">《图解TCP/IP》</a></li>
<li><a href="http://www.tcpipguide.com/free/index.htm" target="_blank" rel="noopener">《The TCP/IP Guide》</a></li>
<li><a href="https://book.douban.com/subject/21691692/" target="_blank" rel="noopener">《Wireshark数据包分析实战》</a>:抓包相关<h4 id="深入"><a href="#深入" class="headerlink" title="深入"></a>深入</h4></li>
<li><a href="https://book.douban.com/subject/1788421/" target="_blank" rel="noopener">《Unix高级环境编程》</a></li>
<li><a href="https://book.douban.com/subject/1500149/" target="_blank" rel="noopener">《Unix网络编程》 第1卷 套接口API </a></li>
<li><a href="https://book.douban.com/subject/4118577/" target="_blank" rel="noopener">《Unix网络编程》第2卷 进程间通信 </a></li>
<li><p><a href="https://book.douban.com/subject/1088054/" target="_blank" rel="noopener">《TCP/IP详解 卷I 协议》</a></p>
</li>
<li><p><a href="https://book.douban.com/subject/25809330/" target="_blank" rel="noopener">《Linux/Unix系统编程手册》</a></p>
</li>
<li><a href="http://igm.univ-mlv.fr/~yahya/progsys/linux.pdf" target="_blank" rel="noopener">Linux System Programming 英文电子版</a></li>
<li><p><a href="https://book.douban.com/subject/25828773/" target="_blank" rel="noopener">中文翻译版Linux系统编程 </a></p>
</li>
<li><p><a href="https://www.oschina.net/translate/c10k" target="_blank" rel="noopener">“C10K Problem （中文翻译版）”</a></p>
</li>
<li><a href="http://highscalability.com/blog/2013/5/13/the-secret-to-10-million-concurrent-connections-the-kernel-i.html" target="_blank" rel="noopener">The Secret To 10 Million Concurrent Connections -The Kernel Is The Problem, Not The Solution</a>:C10M问题</li>
</ul>

      
    </div>
    
    
    

      <div>
  
    <div>
    
        <div style="text-align:center;color: #ccc;font-size:14px;">-------------本文结束<i class="fa fa-paw"></i>感谢您的阅读-------------</div>
    
</div>

  
</div>

<div>
      
        
<div class="my_post_copyright">
  <script src="//cdn.bootcss.com/clipboard.js/1.5.10/clipboard.min.js"></script>
  
  <!-- JS库 sweetalert 可修改路径 -->
  <script src="https://cdn.bootcss.com/jquery/2.0.0/jquery.min.js"></script>
  <script src="https://unpkg.com/sweetalert/dist/sweetalert.min.js"></script>
  <p><span>本文标题:</span><a href="/左耳朵大叔介绍的书籍、文章、网站/">左耳朵大叔介绍的书籍、文章、网站</a></p>
  <p><span>文章作者:</span></a>Chao</p>
  <p><span>发布时间:</span>2018年08月16日 - 21:08</p>
  <p><span>最后更新:</span>2018年08月26日 - 16:08</p>
  <p><span>原始链接:</span><a href="/左耳朵大叔介绍的书籍、文章、网站/" title="左耳朵大叔介绍的书籍、文章、网站">http://xchcloud.cn/左耳朵大叔介绍的书籍、文章、网站/</a>
    <span class="copy-path"  title="点击复制文章链接"><i class="fa fa-clipboard" data-clipboard-text="http://xchcloud.cn/左耳朵大叔介绍的书籍、文章、网站/"  aria-label="复制成功！"></i></span>
  </p>
  <p><span>许可协议:</span><i class="fa fa-creative-commons"></i> <a rel="license" href="https://creativecommons.org/licenses/by-nc-nd/4.0/" target="_blank" title="Attribution-NonCommercial-NoDerivatives 4.0 International (CC BY-NC-ND 4.0)">署名-非商业性使用-禁止演绎 4.0 国际</a> 转载请保留原文链接及作者。</p>  
</div>
<script> 
    var clipboard = new Clipboard('.fa-clipboard');
      $(".fa-clipboard").click(function(){
      clipboard.on('success', function(){
        swal({   
          title: "",   
          text: '复制成功',
          icon: "success", 
          showConfirmButton: true
          });
        });
    });  
</script>

      
</div>

    

    

    

    <footer class="post-footer">
      
        <div class="post-tags">
          
            <a href="/tags/左耳朵耗子/" <i class="fa fa-tag"></i> 左耳朵耗子</a>
          
            <a href="/tags/书籍/" <i class="fa fa-tag"></i> 书籍</a>
          
        </div>
      

      
      
      

      
        <div class="post-nav">
          <div class="post-nav-next post-nav-item">
            
              <a href="/服务器环境搭建/" rel="next" title="服务器环境搭建">
                <i class="fa fa-chevron-left"></i> 服务器环境搭建
              </a>
            
          </div>

          <span class="post-nav-divider"></span>

          <div class="post-nav-prev post-nav-item">
            
              <a href="/左耳朵大叔推荐的实战项目/" rel="prev" title="左耳朵大叔推荐的实战项目">
                左耳朵大叔推荐的实战项目 <i class="fa fa-chevron-right"></i>
              </a>
            
          </div>
        </div>
      

      
      
    </footer>
  </div>
  
  
  
  </article>



    <div class="post-spread">
      
    </div>
  </div>


          </div>
          


          
  <div class="comments" id="comments">
    
  </div>


        </div>
        
          
  
  <div class="sidebar-toggle">
    <div class="sidebar-toggle-line-wrap">
      <span class="sidebar-toggle-line sidebar-toggle-line-first"></span>
      <span class="sidebar-toggle-line sidebar-toggle-line-middle"></span>
      <span class="sidebar-toggle-line sidebar-toggle-line-last"></span>
    </div>
  </div>

  <aside id="sidebar" class="sidebar">
    
    <div class="sidebar-inner">

      

      
        <ul class="sidebar-nav motion-element">
          <li class="sidebar-nav-toc sidebar-nav-active" data-target="post-toc-wrap" >
            文章目录
          </li>
          <li class="sidebar-nav-overview" data-target="site-overview">
            站点概览
          </li>
        </ul>
      

      <section class="site-overview sidebar-panel">
        <div class="site-author motion-element" itemprop="author" itemscope itemtype="http://schema.org/Person">
          <img class="site-author-image" itemprop="image"
               src="https://tuchuang-xchcloud-1253428588.cos.ap-chengdu.myqcloud.com/blog/header.jpg"
               alt="John Doe" />
          </span></a>Chao</p>


           
              <p class="site-description motion-element" itemprop="description"></p>
           
        </div>
        <nav class="site-state motion-element">

          
            <div class="site-state-item site-state-posts">
              <a href="/archives/">
                <span class="site-state-item-count">60</span>
                <span class="site-state-item-name">日志</span>
              </a>
            </div>
          

          
            
            
            <div class="site-state-item site-state-categories">
              <a href="/categories/index.html">
                <span class="site-state-item-count">33</span>
                <span class="site-state-item-name">分类</span>
              </a>
            </div>
          

          
            
            
            <div class="site-state-item site-state-tags">
              <a href="/tags/index.html">
                <span class="site-state-item-count">65</span>
                <span class="site-state-item-name">标签</span>
              </a>
            </div>
          

        </nav>

        

        <div class="links-of-author motion-element">
          
            
              <span class="links-of-author-item">
                <a href="https://github.com/lhc0101" target="_blank" title="Github">
                  
                    <i class="fa fa-fw fa-globe"></i>
                  
                    
                      Github
                    
                </a>
              </span>
            
              <span class="links-of-author-item">
                <a href="http://mail.qq.com/cgi-bin/qm_share?t=qm_mailme&email=qJmcmp_akJ6ZmZHo2dmGy8fF" target="_blank" title="E-mail">
                  
                    <i class="fa fa-fw fa-globe"></i>
                  
                    
                      E-mail
                    
                </a>
              </span>
            
          
        </div>

        
        

        
        
          <div class="links-of-blogroll motion-element links-of-blogroll-inline">
            <div class="links-of-blogroll-title">
              <i class="fa  fa-fw fa-globe"></i>
              dalao&nbsp;
              <i class="fa  fa-fw fa-globe"></i>
            </div>
            <ul class="links-of-blogroll-list">
              
                <li class="links-of-blogroll-item">
                  <a href="http://giracle.cn" title="DJG" target="_blank">DJG</a>
                </li>
              
                <li class="links-of-blogroll-item">
                  <a href="https://owencxc.github.io" title="CX" target="_blank">CX</a>
                </li>
              
                <li class="links-of-blogroll-item">
                  <a href="https://www.myzwl.win" title="ZWL" target="_blank">ZWL</a>
                </li>
              
                <li class="links-of-blogroll-item">
                  <a href="http://wuliekun.me/" title="WLK" target="_blank">WLK</a>
                </li>
              
                <li class="links-of-blogroll-item">
                  <a href="https://Li-rr.github.io" title="LRR" target="_blank">LRR</a>
                </li>
              
                <li class="links-of-blogroll-item">
                  <a href="http://dh.xchcloud.cn" title="导航" target="_blank">导航</a>
                </li>
              
            </ul>
+        <div id="days"></div>
</script>
<script language="javascript">
function show_date_time(){
window.setTimeout("show_date_time()", 1000);
BirthDay=new Date("06/26/2018 12:00:00");
today=new Date();
timeold=(today.getTime()-BirthDay.getTime());
sectimeold=timeold/1000
secondsold=Math.floor(sectimeold);
msPerDay=24*60*60*1000
e_daysold=timeold/msPerDay
daysold=Math.floor(e_daysold);
e_hrsold=(e_daysold-daysold)*24;
hrsold=setzero(Math.floor(e_hrsold));
e_minsold=(e_hrsold-hrsold)*60;
minsold=setzero(Math.floor((e_hrsold-hrsold)*60));
seconds=setzero(Math.floor((e_minsold-minsold)*60));
document.getElementById('days').innerHTML="已运行"+daysold+"天"+hrsold+"小时"+minsold+"分"+seconds+"秒";
}
function setzero(i){
if (i<10)
{i="0" + i};
return i;
}
show_date_time();
</script>

          </div>
         

-        <div id="days"></div>
</script>
<script language="javascript">
function show_date_time(){
window.setTimeout("show_date_time()", 1000);
BirthDay=new Date("06/26/2018 12:00:00");
today=new Date();
timeold=(today.getTime()-BirthDay.getTime());
sectimeold=timeold/1000
secondsold=Math.floor(sectimeold);
msPerDay=24*60*60*1000
e_daysold=timeold/msPerDay
daysold=Math.floor(e_daysold);
e_hrsold=(e_daysold-daysold)*24;
hrsold=setzero(Math.floor(e_hrsold));
e_minsold=(e_hrsold-hrsold)*60;
minsold=setzero(Math.floor((e_hrsold-hrsold)*60));
seconds=setzero(Math.floor((e_minsold-minsold)*60));
document.getElementById('days').innerHTML="已运行"+daysold+"天"+hrsold+"小时"+minsold+"分"+seconds+"秒";
}
function setzero(i){
if (i<10)
{i="0" + i};
return i;
}
show_date_time();
</script>


      </section>

      
      <!--noindex-->
        <section class="post-toc-wrap motion-element sidebar-panel sidebar-panel-active">
          <div class="post-toc">

            
              
            

            
              <div class="post-toc-content"><ol class="nav"><li class="nav-item nav-level-3"><a class="nav-link" href="#程序员练级攻略（2018）"><span class="nav-number">1.</span> <span class="nav-text">程序员练级攻略（2018）</span></a><ol class="nav-child"><li class="nav-item nav-level-4"><a class="nav-link" href="#学习建议"><span class="nav-number">1.1.</span> <span class="nav-text">学习建议</span></a></li><li class="nav-item nav-level-4"><a class="nav-link" href="#程序员的修养"><span class="nav-number">1.2.</span> <span class="nav-text">程序员的修养</span></a></li><li class="nav-item nav-level-4"><a class="nav-link" href="#在线编程入门的网站"><span class="nav-number">1.3.</span> <span class="nav-text">在线编程入门的网站</span></a></li><li class="nav-item nav-level-4"><a class="nav-link" href="#入门学习JavaScript"><span class="nav-number">1.4.</span> <span class="nav-text">入门学习JavaScript</span></a></li><li class="nav-item nav-level-4"><a class="nav-link" href="#前后端"><span class="nav-number">1.5.</span> <span class="nav-text">前后端</span></a></li><li class="nav-item nav-level-4"><a class="nav-link" href="#写代码的修养"><span class="nav-number">1.6.</span> <span class="nav-text">写代码的修养</span></a><ol class="nav-child"><li class="nav-item nav-level-5"><a class="nav-link" href="#不错的Code-Review的文章"><span class="nav-number">1.6.1.</span> <span class="nav-text">不错的Code Review的文章</span></a></li><li class="nav-item nav-level-5"><a class="nav-link" href="#Unit-Test的不错文章"><span class="nav-number">1.6.2.</span> <span class="nav-text">Unit Test的不错文章</span></a></li><li class="nav-item nav-level-5"><a class="nav-link" href="#学习JUnit"><span class="nav-number">1.6.3.</span> <span class="nav-text">学习JUnit</span></a></li></ol></li><li class="nav-item nav-level-4"><a class="nav-link" href="#工具"><span class="nav-number">1.7.</span> <span class="nav-text">工具</span></a><ol class="nav-child"><li class="nav-item nav-level-5"><a class="nav-link" href="#编程的IDE"><span class="nav-number">1.7.1.</span> <span class="nav-text">编程的IDE</span></a></li><li class="nav-item nav-level-5"><a class="nav-link" href="#版本管理工具"><span class="nav-number">1.7.2.</span> <span class="nav-text">版本管理工具</span></a></li><li class="nav-item nav-level-5"><a class="nav-link" href="#调试前端程序"><span class="nav-number">1.7.3.</span> <span class="nav-text">调试前端程序</span></a></li><li class="nav-item nav-level-5"><a class="nav-link" href="#数据库设计工具"><span class="nav-number">1.7.4.</span> <span class="nav-text">数据库设计工具</span></a></li></ol></li><li class="nav-item nav-level-4"><a class="nav-link" href="#安全"><span class="nav-number">1.8.</span> <span class="nav-text">安全</span></a><ol class="nav-child"><li class="nav-item nav-level-5"><a class="nav-link" href="#Web"><span class="nav-number">1.8.1.</span> <span class="nav-text">Web</span></a></li><li class="nav-item nav-level-5"><a class="nav-link" href="#HTTP"><span class="nav-number">1.8.2.</span> <span class="nav-text">HTTP</span></a></li><li class="nav-item nav-level-5"><a class="nav-link" href="#安全编程"><span class="nav-number">1.8.3.</span> <span class="nav-text">安全编程</span></a></li><li class="nav-item nav-level-5"><a class="nav-link" href="#防御性编程-维基百科"><span class="nav-number">1.8.4.</span> <span class="nav-text">防御性编程(维基百科)</span></a></li></ol></li><li class="nav-item nav-level-4"><a class="nav-link" href="#测试"><span class="nav-number">1.9.</span> <span class="nav-text">测试</span></a></li><li class="nav-item nav-level-4"><a class="nav-link" href="#上线Checklist"><span class="nav-number">1.10.</span> <span class="nav-text">上线Checklist</span></a></li><li class="nav-item nav-level-4"><a class="nav-link" href="#运维方面的入门文章"><span class="nav-number">1.11.</span> <span class="nav-text">运维方面的入门文章</span></a></li><li class="nav-item nav-level-4"><a class="nav-link" href="#各种语言的编程规范"><span class="nav-number">1.12.</span> <span class="nav-text">各种语言的编程规范</span></a></li></ol></li><li class="nav-item nav-level-3"><a class="nav-link" href="#编程语言"><span class="nav-number">2.</span> <span class="nav-text">编程语言</span></a><ol class="nav-child"><li class="nav-item nav-level-4"><a class="nav-link" href="#Java语言"><span class="nav-number">2.1.</span> <span class="nav-text">Java语言</span></a></li><li class="nav-item nav-level-4"><a class="nav-link" href="#C-C-语言"><span class="nav-number">2.2.</span> <span class="nav-text">C/C++语言</span></a></li><li class="nav-item nav-level-4"><a class="nav-link" href="#Go语言"><span class="nav-number">2.3.</span> <span class="nav-text">Go语言</span></a></li></ol></li><li class="nav-item nav-level-3"><a class="nav-link" href="#理论学科"><span class="nav-number">3.</span> <span class="nav-text">理论学科</span></a><ol class="nav-child"><li class="nav-item nav-level-4"><a class="nav-link" href="#数据结构和算法"><span class="nav-number">3.1.</span> <span class="nav-text">数据结构和算法</span></a><ol class="nav-child"><li class="nav-item nav-level-5"><a class="nav-link" href="#基础知识"><span class="nav-number">3.1.1.</span> <span class="nav-text">基础知识</span></a></li><li class="nav-item nav-level-5"><a class="nav-link" href="#理论加持"><span class="nav-number">3.1.2.</span> <span class="nav-text">理论加持</span></a></li><li class="nav-item nav-level-5"><a class="nav-link" href="#思维改善"><span class="nav-number">3.1.3.</span> <span class="nav-text">思维改善</span></a></li><li class="nav-item nav-level-5"><a class="nav-link" href="#基础算法题"><span class="nav-number">3.1.4.</span> <span class="nav-text">基础算法题</span></a></li><li class="nav-item nav-level-5"><a class="nav-link" href="#编程题"><span class="nav-number">3.1.5.</span> <span class="nav-text">编程题</span></a></li></ol></li><li class="nav-item nav-level-4"><a class="nav-link" href="#其它理论基础知识"><span class="nav-number">3.2.</span> <span class="nav-text">其它理论基础知识</span></a></li></ol></li><li class="nav-item nav-level-3"><a class="nav-link" href="#计算机系统相关知识"><span class="nav-number">4.</span> <span class="nav-text">计算机系统相关知识</span></a><ol class="nav-child"><li class="nav-item nav-level-4"><a class="nav-link" href="#入门"><span class="nav-number">4.1.</span> <span class="nav-text">入门</span></a></li><li class="nav-item nav-level-4"><a class="nav-link" href="#深入"><span class="nav-number">4.2.</span> <span class="nav-text">深入</span></a></li></ol></li></ol></div>
            

          </div>
        </section>
      <!--/noindex-->
      

      

    </div>
  </aside>


        
      </div>
    </main>

    <footer id="footer" class="footer">
      <div class="footer-inner">
        <div class="copyright" >
  
  &copy; 
  <span itemprop="copyrightYear">2019</span>
  <span class="with-love">
    <i class="fa fa-heart"></i>
  </span>
  <span class="author" itemprop="copyrightHolder">Chao</span>
</div>



<div class="theme-info">
  <span class="post-count">博客全站共118.7k字</span>
</div>

        
<div class="busuanzi-count">
  <script async src="https://busuanzi.ibruce.info/busuanzi/2.3/busuanzi.pure.mini.js"></script>

  
    <span class="site-uv">
      <i class="fa fa-user">访客数</i>
      <span class="busuanzi-value" id="busuanzi_value_site_uv"></span>
      人
    </span>
  

  
    <span class="site-pv">
      <i class="fa fa-eye">访客总量</i>
      <span class="busuanzi-value" id="busuanzi_value_site_pv"></span>
      次
    </span>
  
</div>


        
      </div>
    </footer>

    
      <div class="back-to-top">
        <i class="fa fa-arrow-up"></i>
        
      </div>
    

  </div>

  

<script type="text/javascript">
  if (Object.prototype.toString.call(window.Promise) !== '[object Function]') {
    window.Promise = null;
  }
</script>









  




  
  









  
  <script type="text/javascript" src="/lib/jquery/index.js?v=2.1.3"></script>

  
  <script type="text/javascript" src="/lib/fastclick/lib/fastclick.min.js?v=1.0.6"></script>

  
  <script type="text/javascript" src="/lib/jquery_lazyload/jquery.lazyload.js?v=1.9.7"></script>

  
  <script type="text/javascript" src="/lib/velocity/velocity.min.js?v=1.2.1"></script>

  
  <script type="text/javascript" src="/lib/velocity/velocity.ui.min.js?v=1.2.1"></script>

  
  <script type="text/javascript" src="/lib/fancybox/source/jquery.fancybox.pack.js?v=2.1.5"></script>

  
  <script type="text/javascript" src="/lib/three/three.min.js"></script>

  
  <script type="text/javascript" src="/lib/three/three-waves.min.js"></script>


  


  <script type="text/javascript" src="/js/src/utils.js?v=5.1.2"></script>

  <script type="text/javascript" src="/js/src/motion.js?v=5.1.2"></script>



  
  

  
  <script type="text/javascript" src="/js/src/scrollspy.js?v=5.1.2"></script>
<script type="text/javascript" src="/js/src/post-details.js?v=5.1.2"></script>



  


  <script type="text/javascript" src="/js/src/bootstrap.js?v=5.1.2"></script>



  


  




	





  





  






  

  <script type="text/javascript">
    // Popup Window;
    var isfetched = false;
    var isXml = true;
    // Search DB path;
    var search_path = "search.xml";
    if (search_path.length === 0) {
      search_path = "search.xml";
    } else if (/json$/i.test(search_path)) {
      isXml = false;
    }
    var path = "/" + search_path;
    // monitor main search box;

    var onPopupClose = function (e) {
      $('.popup').hide();
      $('#local-search-input').val('');
      $('.search-result-list').remove();
      $('#no-result').remove();
      $(".local-search-pop-overlay").remove();
      $('body').css('overflow', '');
    }

    function proceedsearch() {
      $("body")
        .append('<div class="search-popup-overlay local-search-pop-overlay"></div>')
        .css('overflow', 'hidden');
      $('.search-popup-overlay').click(onPopupClose);
      $('.popup').toggle();
      var $localSearchInput = $('#local-search-input');
      $localSearchInput.attr("autocapitalize", "none");
      $localSearchInput.attr("autocorrect", "off");
      $localSearchInput.focus();
    }

    // search function;
    var searchFunc = function(path, search_id, content_id) {
      'use strict';

      // start loading animation
      $("body")
        .append('<div class="search-popup-overlay local-search-pop-overlay">' +
          '<div id="search-loading-icon">' +
          '<i class="fa fa-spinner fa-pulse fa-5x fa-fw"></i>' +
          '</div>' +
          '</div>')
        .css('overflow', 'hidden');
      $("#search-loading-icon").css('margin', '20% auto 0 auto').css('text-align', 'center');

      $.ajax({
        url: path,
        dataType: isXml ? "xml" : "json",
        async: true,
        success: function(res) {
          // get the contents from search data
          isfetched = true;
          $('.popup').detach().appendTo('.header-inner');
          var datas = isXml ? $("entry", res).map(function() {
            return {
              title: $("title", this).text(),
              content: $("content",this).text(),
              url: $("url" , this).text()
            };
          }).get() : res;
          var input = document.getElementById(search_id);
          var resultContent = document.getElementById(content_id);
          var inputEventFunction = function() {
            var searchText = input.value.trim().toLowerCase();
            var keywords = searchText.split(/[\s\-]+/);
            if (keywords.length > 1) {
              keywords.push(searchText);
            }
            var resultItems = [];
            if (searchText.length > 0) {
              // perform local searching
              datas.forEach(function(data) {
                var isMatch = false;
                var hitCount = 0;
                var searchTextCount = 0;
                var title = data.title.trim();
                var titleInLowerCase = title.toLowerCase();
                var content = data.content.trim().replace(/<[^>]+>/g,"");
                var contentInLowerCase = content.toLowerCase();
                var articleUrl = decodeURIComponent(data.url);
                var indexOfTitle = [];
                var indexOfContent = [];
                // only match articles with not empty titles
                if(title != '') {
                  keywords.forEach(function(keyword) {
                    function getIndexByWord(word, text, caseSensitive) {
                      var wordLen = word.length;
                      if (wordLen === 0) {
                        return [];
                      }
                      var startPosition = 0, position = [], index = [];
                      if (!caseSensitive) {
                        text = text.toLowerCase();
                        word = word.toLowerCase();
                      }
                      while ((position = text.indexOf(word, startPosition)) > -1) {
                        index.push({position: position, word: word});
                        startPosition = position + wordLen;
                      }
                      return index;
                    }

                    indexOfTitle = indexOfTitle.concat(getIndexByWord(keyword, titleInLowerCase, false));
                    indexOfContent = indexOfContent.concat(getIndexByWord(keyword, contentInLowerCase, false));
                  });
                  if (indexOfTitle.length > 0 || indexOfContent.length > 0) {
                    isMatch = true;
                    hitCount = indexOfTitle.length + indexOfContent.length;
                  }
                }

                // show search results

                if (isMatch) {
                  // sort index by position of keyword

                  [indexOfTitle, indexOfContent].forEach(function (index) {
                    index.sort(function (itemLeft, itemRight) {
                      if (itemRight.position !== itemLeft.position) {
                        return itemRight.position - itemLeft.position;
                      } else {
                        return itemLeft.word.length - itemRight.word.length;
                      }
                    });
                  });

                  // merge hits into slices

                  function mergeIntoSlice(text, start, end, index) {
                    var item = index[index.length - 1];
                    var position = item.position;
                    var word = item.word;
                    var hits = [];
                    var searchTextCountInSlice = 0;
                    while (position + word.length <= end && index.length != 0) {
                      if (word === searchText) {
                        searchTextCountInSlice++;
                      }
                      hits.push({position: position, length: word.length});
                      var wordEnd = position + word.length;

                      // move to next position of hit

                      index.pop();
                      while (index.length != 0) {
                        item = index[index.length - 1];
                        position = item.position;
                        word = item.word;
                        if (wordEnd > position) {
                          index.pop();
                        } else {
                          break;
                        }
                      }
                    }
                    searchTextCount += searchTextCountInSlice;
                    return {
                      hits: hits,
                      start: start,
                      end: end,
                      searchTextCount: searchTextCountInSlice
                    };
                  }

                  var slicesOfTitle = [];
                  if (indexOfTitle.length != 0) {
                    slicesOfTitle.push(mergeIntoSlice(title, 0, title.length, indexOfTitle));
                  }

                  var slicesOfContent = [];
                  while (indexOfContent.length != 0) {
                    var item = indexOfContent[indexOfContent.length - 1];
                    var position = item.position;
                    var word = item.word;
                    // cut out 100 characters
                    var start = position - 20;
                    var end = position + 80;
                    if(start < 0){
                      start = 0;
                    }
                    if (end < position + word.length) {
                      end = position + word.length;
                    }
                    if(end > content.length){
                      end = content.length;
                    }
                    slicesOfContent.push(mergeIntoSlice(content, start, end, indexOfContent));
                  }

                  // sort slices in content by search text's count and hits' count

                  slicesOfContent.sort(function (sliceLeft, sliceRight) {
                    if (sliceLeft.searchTextCount !== sliceRight.searchTextCount) {
                      return sliceRight.searchTextCount - sliceLeft.searchTextCount;
                    } else if (sliceLeft.hits.length !== sliceRight.hits.length) {
                      return sliceRight.hits.length - sliceLeft.hits.length;
                    } else {
                      return sliceLeft.start - sliceRight.start;
                    }
                  });

                  // select top N slices in content

                  var upperBound = parseInt('1');
                  if (upperBound >= 0) {
                    slicesOfContent = slicesOfContent.slice(0, upperBound);
                  }

                  // highlight title and content

                  function highlightKeyword(text, slice) {
                    var result = '';
                    var prevEnd = slice.start;
                    slice.hits.forEach(function (hit) {
                      result += text.substring(prevEnd, hit.position);
                      var end = hit.position + hit.length;
                      result += '<b class="search-keyword">' + text.substring(hit.position, end) + '</b>';
                      prevEnd = end;
                    });
                    result += text.substring(prevEnd, slice.end);
                    return result;
                  }

                  var resultItem = '';

                  if (slicesOfTitle.length != 0) {
                    resultItem += "<li><a href='" + articleUrl + "' class='search-result-title'>" + highlightKeyword(title, slicesOfTitle[0]) + "</a>";
                  } else {
                    resultItem += "<li><a href='" + articleUrl + "' class='search-result-title'>" + title + "</a>";
                  }

                  slicesOfContent.forEach(function (slice) {
                    resultItem += "<a href='" + articleUrl + "'>" +
                      "<p class=\"search-result\">" + highlightKeyword(content, slice) +
                      "...</p>" + "</a>";
                  });

                  resultItem += "</li>";
                  resultItems.push({
                    item: resultItem,
                    searchTextCount: searchTextCount,
                    hitCount: hitCount,
                    id: resultItems.length
                  });
                }
              })
            };
            if (keywords.length === 1 && keywords[0] === "") {
              resultContent.innerHTML = '<div id="no-result"><i class="fa fa-search fa-5x" /></div>'
            } else if (resultItems.length === 0) {
              resultContent.innerHTML = '<div id="no-result"><i class="fa fa-frown-o fa-5x" /></div>'
            } else {
              resultItems.sort(function (resultLeft, resultRight) {
                if (resultLeft.searchTextCount !== resultRight.searchTextCount) {
                  return resultRight.searchTextCount - resultLeft.searchTextCount;
                } else if (resultLeft.hitCount !== resultRight.hitCount) {
                  return resultRight.hitCount - resultLeft.hitCount;
                } else {
                  return resultRight.id - resultLeft.id;
                }
              });
              var searchResultList = '<ul class=\"search-result-list\">';
              resultItems.forEach(function (result) {
                searchResultList += result.item;
              })
              searchResultList += "</ul>";
              resultContent.innerHTML = searchResultList;
            }
          }

          if ('auto' === 'auto') {
            input.addEventListener('input', inputEventFunction);
          } else {
            $('.search-icon').click(inputEventFunction);
            input.addEventListener('keypress', function (event) {
              if (event.keyCode === 13) {
                inputEventFunction();
              }
            });
          }

          // remove loading animation
          $(".local-search-pop-overlay").remove();
          $('body').css('overflow', '');

          proceedsearch();
        }
      });
    }

    // handle and trigger popup window;
    $('.popup-trigger').click(function(e) {
      e.stopPropagation();
      if (isfetched === false) {
        searchFunc(path, 'local-search-input', 'local-search-result');
      } else {
        proceedsearch();
      };
    });

    $('.popup-btn-close').click(onPopupClose);
    $('.popup').click(function(e){
      e.stopPropagation();
    });
    $(document).on('keyup', function (event) {
      var shouldDismissSearchPopup = event.which === 27 &&
        $('.search-popup').is(':visible');
      if (shouldDismissSearchPopup) {
        onPopupClose();
      }
    });
  </script>





  

  
<script>
(function(){
    var bp = document.createElement('script');
    var curProtocol = window.location.protocol.split(':')[0];
    if (curProtocol === 'https') {
        bp.src = 'https://zz.bdstatic.com/linksubmit/push.js';        
    }
    else {
        bp.src = 'http://push.zhanzhang.baidu.com/push.js';
    }
    var s = document.getElementsByTagName("script")[0];
    s.parentNode.insertBefore(bp, s);
})();
</script>


  

  

  
  <script type="text/javascript" src="/js/src/js.cookie.js?v=5.1.2"></script>
  <script type="text/javascript" src="/js/src/scroll-cookie.js?v=5.1.2"></script>


  

  

</body>
</html>
